package factory;

import javax.annotation.Resource;

@Component("苹果")
public class Apple {
    @Resource(name = "红富士")
    private String brand;

    @RequestMapping(value = "/getBrand", method = "post")
    public String getBrand() {
        return this.brand;
    }
}
